from rest_framework import serializers
from apps.HttpTestcase.models.ext_method import Ext_MethodModel


class ExtModeSerializer(serializers.ModelSerializer):
    create_time = serializers.DateTimeField(format="%Y-%m-%d %H:%M:%S", required=False, read_only=True)
    update_time = serializers.DateTimeField(format="%Y-%m-%d %H:%M:%S", required=False, read_only=True)

    class Meta:
        model = Ext_MethodModel
        fields = '__all__'
